﻿<MOverlay Value="Overlay">
    <a>@Msg</a>
    @if (AllFileCout.HasValue)
    {
        <a>[@CurrentFileIndex / @AllFileCout]</a>
    }
    <MProgressLinear @bind-Value="@Progress" Fixed Height="25">
        <strong>@($"{context.ToString("F1")}%")</strong>
    </MProgressLinear>
</MOverlay>

@code {
    [Parameter]
    public bool Overlay { get; set; }
    [Parameter]
    public double Progress { get; set; }
    [Parameter]
    public int? CurrentFileIndex { get; set; }
    [Parameter]
    public int? AllFileCout { get; set; }
    [Parameter]
    public string Msg { get; set; }
}
